package com.lebang.mapper;

import com.lebang.domain.MemberCashFastWithdrawal;
import com.lebang.domain.MemberCashWithdrawal;
import com.lebang.example.MemberCashFastWithdrawalExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * MemberCashFastWithdrawalMapper继承基类
 */
@Mapper
public interface MemberCashFastWithdrawalMapper extends MyBatisBaseDao<MemberCashFastWithdrawal, Long, MemberCashFastWithdrawalExample> {

    List<MemberCashWithdrawal> selectList(String memberId);

    MemberCashFastWithdrawal selectByTradeNo(String tradeNo);

    int countByFastCash(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    BigDecimal sumByFastCash(LocalDateTime star, LocalDateTime end);
}